home *** CD-ROM | disk | FTP | other *** search
/ The Games Machine 76 / XENIATGM66.iso / Indiana Jones / Indiana Jones.exe / RESOURCE / PREVIEW.GOB / cog_shs_bt_nosee.cog < prev    next >
Text File  |  1999-11-15  |  1KB  |  78 lines

  1. # Jones 3D Cog Script
  2. #
  3. # SHS_BT_NoSee.cog   Isolate Bell Tower sectors for framerate.
  4. #
  5. # [JWC]
  6. #
  7. # (C) 1999 LucasArts Entertainment Co. All Rights Reserved
  8.  
  9. symbols
  10.     
  11.     message    startup
  12.     message crossed
  13.     
  14.        surface FromRoofOn        linkid=1        
  15.     surface ToRoofOff        linkid=2
  16.     surface FromBigNaveOn   linkid=1
  17.     surface ToBigNaveOff    linkid=2    
  18.     
  19.     sector  WindowSec0
  20.     sector  GateSec0
  21.     sector  GateSec1
  22.     sector    ToArena
  23.     
  24.     int     player        local
  25.  
  26.     
  27. end
  28.  
  29. code
  30.  
  31. startup:
  32.     
  33.     player=GetLocalPlayerThing();
  34.     SetSectorAdjoins(WindowSec0, 0);
  35.     SetSectorAdjoins(GateSec0, 0);
  36.     SetSectorAdjoins(GateSec1, 0);
  37.     SetSectorAdjoins(ToArena, 0);
  38.     
  39.     
  40.     return;
  41.  
  42. crossed:
  43.     
  44.  
  45.     # make sure Indy player is sending message
  46.     If (GetSourceRef() != player) return;
  47.  
  48.     # draw sector
  49.     If (GetSenderId() == 1 )
  50.     {
  51.         Print("draw sector");
  52.         SetSectorAdjoins(WindowSec0, 1);
  53.         SetSectorAdjoins(GateSec0, 1);
  54.         SetSectorAdjoins(GateSec1, 1);
  55.         SetSectorAdjoins(ToArena, 1);
  56.     }    
  57.     
  58.     # don't draw sector 
  59.     If ((GetSenderId() == 2))
  60.     {
  61.         Print("draw off");
  62.         SetSectorAdjoins(WindowSec0, 0);
  63.         SetSectorAdjoins(GateSec0, 0);
  64.         SetSectorAdjoins(GateSec1, 0);
  65.         SetSectorAdjoins(ToArena, 0);
  66.         
  67.     }
  68.     return;
  69.     
  70.  
  71.  
  72. end
  73.  
  74.     
  75.  
  76.  
  77.